﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sgr.Oss.Services
{
    /// <summary>
    /// 列举对象结果
    /// </summary>
    public class ListObjectsResult
    {
        /// <summary>
        /// 对象列表
        /// </summary>
        public IEnumerable<ObjectInfo> Objects { get; set; } = Array.Empty<ObjectInfo>();

        /// <summary>
        /// 公共前缀列表（文件夹）
        /// </summary>
        public IEnumerable<string> CommonPrefixes { get; set; } = Array.Empty<string>();

        /// <summary>
        /// 是否已列举完成
        /// </summary>
        public bool IsTruncated { get; set; }

        /// <summary>
        /// 延续标记
        /// </summary>
        public string? NextContinuationToken { get; set; }
    }
}